package com.share.pojo.bo;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Created with IntelliJ IDEA.
 * <p>
 * 合同表
 *
 * @author liw
 * @version 1.0
 * @date 2023/12/29 16:50
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "BIZ_ADDRESS_INFO")
public class BizAddressInfo extends BaseEntity {

    /**
     * The user id（用户主键）
     */
    @TableField(value = "REGISTER_ID", updateStrategy = FieldStrategy.IGNORED)
    private Long registerId;

    @TableField(value = "TENANT_ID")
    private Long tenantId;

    /**
     * The name（名称）
     */
    @TableField(value = "NAME", updateStrategy = FieldStrategy.IGNORED)
    private String name;

    /**
     * The name（名称）
     */
    @TableField(value = "DETAIL", updateStrategy = FieldStrategy.IGNORED)
    private String detail;

    /**
     * The name（名称）
     */
    @TableField(value = "PHONE", updateStrategy = FieldStrategy.IGNORED)
    private String phone;

    /**
     * The city code.
     */
    @TableField(value = "CITY_CODE1", updateStrategy = FieldStrategy.IGNORED)
    private String cityCode1;

    /**
     * The city code.
     */
    @TableField(value = "CITY_CODE2", updateStrategy = FieldStrategy.IGNORED)
    private String cityCode2;

    /**
     * The city code.
     */
    @TableField(value = "CITY_CODE3", updateStrategy = FieldStrategy.IGNORED)
    private String cityCode3;

    /**
     * The city name.
     */
    @TableField(value = "CITY_NAME1", updateStrategy = FieldStrategy.IGNORED)
    private String cityName1;

    /**
     * The city name.
     */
    @TableField(value = "CITY_NAME2", updateStrategy = FieldStrategy.IGNORED)
    private String cityName2;

    /**
     * The city name.
     */
    @TableField(value = "CITY_NAME3", updateStrategy = FieldStrategy.IGNORED)
    private String cityName3;

    /**
     * The delete flag.
     */
    @TableField(value = "DELETE_FLAG", updateStrategy = FieldStrategy.IGNORED)
    private Boolean deleteFlag = false;

    public String getValue() {
        return name + "，" + phone + "（" + cityName1 + cityName2 + cityName3 + detail + "）";
    }

}
